package cn.tedu.xzs.admin.questionmanagement.dao.persist.repository.impl;


import cn.tedu.xzs.admin.questionmanagement.dao.persist.mapper.AnswerMapper;
import cn.tedu.xzs.admin.questionmanagement.dao.persist.repository.AnswerRepository;
import cn.tedu.xzs.admin.questionmanagement.pojo.entity.Answer;
import cn.tedu.xzs.admin.questionmanagement.pojo.vo.AnswerVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class AnswerRepositoryImpl implements AnswerRepository {
    @Autowired
    private AnswerMapper answerMapper;
    @Override
    public int addNew(Answer answer) {
        return answerMapper.insert(answer);
    }

    @Override
    public List<AnswerVO> getByQuestionId(Long id) {
        return null;
    }
}
